Stephen Bunting avoided a huge upset as he edged past Poland's Sebastian Bialecki 3-2 in the first round of the World Darts Championship.