Different memory layout due to JSGC_TRACK_EXACT_ROOTS!

With spider monkey 25, JSGC_TRACK_EXACT_ROOTS is enabled for a debug build. It adds some extra tracking abilities to spider monkey objects, so to alter memory layout. It leads to incompatibility between debug and non-debug build.

Any suggestions?