Improve table scoping, supporting [] accesses