Fix bug introduced by backreferencing type definitions