Make frame requirement calculation a small method in ACP
Register end block to toplevel scope so JIT can know it exists
For methods and other scopes do not mandatorily not allow ACP to run on them
in case they happen to have an END block in them.

I opened up issue #2073: END blocks in exotic scopes do not capture outer variables