Flow-based sampling for multimodal and extended-mode distributions in lattice field theory