Support double with type=number, with tests.