fix #7302

compile-time method lookup (jl_get_specialization) needed to be more careful
about making sure only 1 method matches.