Function to remove empty syllables
Added function to remove singleton beams, while preserving the beam's child in place