implement getitem/setitem/contains on Scope