Three second-half goals saw Dungannon Swifts come through an awkward BetMcLean Cup tie against third-tier Dollingstown.