Put specialized signatures at the top of the list of call candidates

Fixes #1133.