Merge pull request #143 from vikerman/master

Fix indentation and compiler warning
Fix #142 - provide correct instanceof behavior for native classes
Bind to the frame/render buffer last bound in script when switching contexts