fix #702 assume number types in the rest spec are longs and not ints