[Issue #13] callFunction: was not registering block objects with script engine
Merge upstream changes by newyankeecodeshop