Primitives must be passed by value to app class methods. Adding support back in for calling functions (must promote raw types to references).