Better error message from unnamed units
Merge pull request #1482 from mdboom/unit/unnamed-warning

CompositeUnit object has not attribute name