Bug 1034672 - Fix order of arguments to memcpy in WriteMetadata. r=michal