[libcontacts] Prefer complete phone number match over partial match

If we are matching against the number '321', then a 3-digit match to
the number '321' is superior to a 3-digit match with '33321'.