Dipole formation and collisions in a stratified fluid