Fixed dagaddr compiler warnings and added get_nodes_of_type() function