Collective multivortex states in periodic arrays of traps