Fix/optimize ResultSet.getObject for int/long.