Handle writing config keys with depth > 1

Closes #3561467

Merge request reports

Loading