Bases in coset conformal field theory from AGT correspondence and Macdonald polynomials at the roots of unity