Some additions to make StandaloneXtendInterpreter more usable, bugfix
for polymorphism, added polymorphism test.