Add detection of globalID mismatch.

@bug W-1925068@

@rev eric.anderson@

@P4CL: 8392627@
ensure attributes are processed in the same order client and server side to fix global id mismatches

@bug W-1925251@
@rev goliver@
Merging origin/bob/master-pending/fix-id-mismatch-with-detect into master