Added a context (mainly for methods) to store return variable names and other per-method stuff.
Added declaration of return variables, and fixed empty returns. Also convert method receiver to this->.