Speed up MAP with known vector types.