Mass fixes for object passed by value

Mass fixes for object passed by value and some build-in types passed by reference.

See #105.