vectorized mappers should not modify inputs in place