Moved elementType from SingleValue to PointerType.
Added support for custom Java imports. This is useful for references across
client APIs (e.g. CL/GL interop).