Update Context to support both getitem and getattr
Removed unused attributes in Context