semantic: Implement enum support for scope manager.