Improve Module#constants etc by manually storing constants in scopes