rename a local variable current_node -> nodetype; ref #2583