add proper classdefs to forest and tree classes