Move gensym inside MethodProxy.

Also initialize with name and class so that we can reach that info if needed
during registered blocks.
Fix some small issues I saw while working on this earlier.