Store attribute checks on QueryResult.__setitem__
Avoid full list creation for QueryResult.__getitem__