this is one way of recording DOM access, need to process the stack quite a
bit, but hopefully it's not too expensive. Note that I also hacked
codegen.py to ignore build errors when adding 'wrapperCache': False in
bindings.conf