Fast floating-point array serialization for Java and JS