Support double with type=number, with tests.
Merge pull request #29 from alxhub/number-double-fix

Support double with type=number, with tests.