Fix compiler so inner types that are dependent on base types are guaranteed to come after the base types.