Improve Nashorn support for scripting, make getBehaviors() public in Composite