Fixes SERVER-9491

Upper chunk key was not written properly to the log in some places.
Merge pull request #418 from johanhedin/SERVER-9491

SERVER-9491: Fix chunk.max logging
SERVER-6400 - fix regex parsing error message and add some tests for field ordering