fix for bug in get_required_compnames when vartrees are connected in param/con/obj