Coincident root loci and Jack and Macdonald polynomials for special values of the parameters