fix Bus error when serializing double variables on ARM CPU