Coleraine suffered a blow in the title race after they were beaten 3-1 by Dungannon Swifts – who ran riot in a dominant opening 45 minutes.