Bugfix: use correct types in YAML parser.

Now "gridStep: 0.5" is allowed in the YAML input file.