Support BigDecimal and BigInteger in the query builder

JAVA-58 #resolve