Added ParseNode::setType() to ensure that UnicodeSet gets destroyed on
type changes.