Add support to use interfaces as types.
Add test method (Calculator2.copyMemory) to test object parameters.