Added support and tests for Java primitives.