Build the setting array recursively so we can support multidimension arrays greater than a depth of two.