Custom preferences for number range and steps input.

Also catch number format exceptions in custom study input to avoid
crashing the application.
Deck options XML formatting