Check for numeric keys when sanitizing settings to be compatible with extensions that have registered settings with numeric keys. Closes #1605