Fix float to int conversion in mlir emitters.
Fix float to int conversion in mlir emitters.

The float to signed int conversion was there previously, but removed because I
thought it wasn't needed. Turns out that the float_conversions_test covers this
logic, and it is indeed needed. Also port the logic for float to unsigned int
conversion from elemental_ir_emitter and add a test.
