Static and time dependent density functional theory with internal degrees of freedom: Merits and limitations demonstrated for the Potts model Article uri icon