Control of ultraslow inelastic collisions by Feshbach resonances and quasi-one- dimensional confinement