finishing the porting of node_is_type rule condition issue-2281117

Rules node_is_of_type condition ready for review.