validate unittype/upgradetype costs. fixes #37