Bug 1081287: Use EnumMap where possible in sync. r=rnewman

Reviewed on Bugzilla, upstreaming the sync-specific stuff.

... That, or an amusing automation error is about to occur...