Fixed #258. Recursive subdocument configuration