Fixed a bug regarding trait collection. Also removed compile warnings.