Fix a bug in makeNestedScopeTrees affecting ImplicitInherit