Config resoution order correction and documentation.

Addresses #5359.