Get rid of std::vector in copyLikeDimenions, use a local array instead
memoize the encoded offset vector into schema::DimensionMap so it is updated every time a pair is inserted rather than every time copyLikeDimensions is called