Refactor config-changes.js, p12. Munge arithmetic.

Add separate functions to manipulate munge objects.