Small optimization for -insert-at

The old version had unnecessary copying.