GetType should return err instead of multiple; test for dupes in main; fix tests