Add support for JavaPrimitiveTypes

int, long, float and double is supported.
byte, char and short remains to be done.