Improve error message for unresolved subtype ids.