Implement method dispatch on server side.

This required extensive changes to the serializer so that it also includes type
information for each member. The primitive types call seems to work now.

You can actually call some of the methods successfully now so that server will
run them.

In/Out semantics are not implemented yet.