Simplify writing floating types to assembly.

This removes previous special cases for each floating-point type in favour of a
shared codepath.