Fix incorrectly generated date inputs & selected values.

* Generate type = date properly.
* Select the correct input when maxYear and no value are used
  together.
Unskip tests that now pass.
Fix incorrect aliasing.

The old code resulted in test_default => default, not test => default as
intended.
Remove option that does not exist anymore.
Merge pull request #2908 from markstory/3.0-datetime-fixes

3.0 datetime fixes