finishing the porting of node_is_type rule condition issue-2281117

Rules condition for testing if a node is of a certain type.
Wrong indentation for the todo comment.