Fixed some bugs

Fixed VM bug with return opcode.
Fixed a few compiler bugs.