fix integer_to_binary for < R16.
more merl conversions