widl: Only output code for non-object interfaces in client and server.

Only output code for non-object interfaces in client and server
generation and convert the while loops into for loops.
2 files changed