[x86] Generalize the single-element insertion lowering to work with