Fixing tests using CompiledFunction.asContextWithFrame()
Fixing patching of methods.

It seems there are some clashes of @ids. This is just a temporary
workaround.