Mappings: Make sure that multi fields are serialized in a consistent order.

This ensure that the source is the same and avoids unnecessary mapping re-syncs.

PR for #7215