Some refactoring and improvements to arrayUtils.sort and
objectUtils.forEachOwnProperty. Added objectUtils.merge