do some heavily needed refactoring around helma.scripting.rhino.HopObject and helma.framework.core.TypeManager.