Core: Added an option to fetch nodes of sub-types of a node type.