Fixed Endiannes conversion routines for floats and doubles.

This bug has been introduced in 8825d30aabbee8cb2e452dc5a17deb6f9b6892a7.
This change fixes #854.