* Fixed Node::getParentNode() to use dynamic_cast.