Added type hierarchy extraction on the fly
Added check for root pddl type (object)