Call R using anonymous functions

Change calls into R so that complex objects are passed as parameters to an anonymous function (rather than bound to generated symbols in the global environment).

Note: I removed the generic parameter 'inType from convertToR since it was only ever called with value being of type obj.

Still not sure if this is an improvement on the current behavior, but it least it illustrates the idea.