Support various properties types during serialization
Use Float64Array instead of Float32Array

This is probably temporary change to test serialization easier.
Problem with serialization is that we have to convert Float32 back to
Float64 (regular array) and then stringify. It causes that numbers
are slightly different and tests fail.