Fixed type checks.

Only make integers type int, all other number types get passed as
strings.