[gen] Raise error when unit conversion should have been performed but failed silently (e.g. when adding a space after a float)