Properly handle hallucinated units. Fixes #153.