Make API return numbers not strings for numeric values

- Addresses #42