Initialize settings in undeclared providers.

When a setting provider is not declared in widget that uses it,
providers settings are not loaded from file. Setting instances still
need to be replaced with their defaults.
Refactor ContextSettingHandlerTests.
Refactor setting provider.

Replace for_each_setting with a generator.
Add more typehints for PyCharm.