allow text-like searching of integer fields for tickets

initial reason to do this is to autocomplete ticket links.
note that we need to "cast" int to text for Pg
autocomplete tickets support

note that we use FromSQL to avoid the *not working* multiple ->Limit calls
with "ENTRYAGGREGATOR => 'OR'"
Merge branch '4.2/autocomplete-links'