Entanglement entropy and nonabelian gauge symmetry