Various fixes for chrome.

Basic fixes to enable hello world to work in chrome. Chrome is useful for debugging Function objects.
It's not, I had switched to a foreach originally. Will remove.