Don't do expensive complex number handling if we don't have to.
Merge pull request #2331 from mdboom/unit/dont-complex

sanitize_scale: Don't do expensive complex number handling if we don't have to.