Fixed errors that led to Entity and TreeEntity instances not having access to their...