Fix code and test for listing unused CIP types.