lots of small fixes for arg_type and node_type