OpenCL function updates

Adding support for using lambda functions for direct mode. 

Also adding tests for numpy and math function mappings.