compare only attributes of the same type

attribute comparison callback may handle attributes of different type internally
radius_compare_vps requires two attributes of the same type, so enforce it