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
Merge pull request #398 from olivierbeytrison/fix-pair-compare

compare only attributes of the same type