Major speedup in Unit.decompose and Unit.compose
Merge pull request #836 from mdboom/unit/speed-improvement

Units: speed improvement