On the fundamental group of Hom(Z^k,G)