traverse base types to get groupref