Add crude implementation of ids using ruby $globals - replace soon with real implementation
Improve AST for id - make AST list script-local, but fetching is still not script-local