Add some convenience overloads to unbound rule input builder.

+review REVIEW-5153
Order suggestions by their similarity.

+review REVIEW-5153
More convenience overloads.

+review REVIEW-5153
Generics.

+review REVIEW-5153
Various signature changes.

+review REVIEW-5153
Minor tweaks to test.

+review REVIEW-5153