Add support on filter numeric values and fix pdoNeighbors behaviour

While using package got a problem when "tvFilter" contains values typed "numeric", for example we got situation where 950>1950 because of string compare in field "value" in table modx_site_tmpl_content_values.

So made additional check if field is numeric and then do typecast in SQL query, for right value processing (not best idea, but easiest one).

Additionally found out that pdoNeighbors process wrong values if modResource neighbour is unavailable, for example:
 - Item 1
 - Item 2 - catalog (or deleted) 
 - Item 3
 - Item 4

And now item 3 has only one neighbour - "Item 4", but Item 1 should be left neighbor for it (because of list view). So I modified snippet in way, that firstly selected only right resource ids (using "where" from scriptProperties) and then just getting additional information for them.

Signed-off-by: Egor Bolgov <egor.b@webvortex.ru>