Check if integer within IndexQuery
Validate types in WHERE
Little fixes