Fixed predicate short value handling. Added predicate tests for all pars...

...able types.

Fixes #4293