BZ-1041397: added support for primitive types (boolean,byte,char,short,int,long,double,float) as well as Byte and Character.