Added node query functions
Adding modification to is_instance_by_id to not collapse if id not found, and is_title_in_node_types to check if title is in one of the node types.
Adding modification to is_instance_by_id to not collapse if id not found, and is_title_in_node_types to check if title is in one of the node types.