Changed function argument marshaling behavior, to preserve ITypeScriptObject.

This is to allow node client to cache JSON serialized results and handle
objects in non-updating code (which is TODO in the next step) and reduce
HTTP processing.