fixed support for float field instantiation

also fixes to support JSON and getting rid of some warnings