Fix #1438.
Merge pull request #1438 from mdboom/unit/decompose-anonymous

Fix Unit.decompose into compound units