Fix endianness in array of float/double

PickleUtils.bytes_to_double() and PickleUtils.bytes_to_float() assume that the bytes is in big endian order, so it should reverse the bytes only when machine code is little endian order.

The serialized result of array of float/double used in unit tests is reversed, they had been corrected in this patch.