Fixed inheritance issue with scripted classes

added chaiscript inheritance for scripted classes