Issue #2221577 by andypost, alexpott, yched: Fix assumption that field settings is not a nested array.