Fix units like l, m^3 and m3 being prefixed like kl, km^3 etc

Fix #180, may need more testing.