Add target to methodcalls
Add support for reference types