Fixed float and double de-serialization and added more tests