Materials: Separate material precache group functionality

Previously the animation group mechanic was dual purposed for both
material animation and group precaching. There is now a separate
grouping system which is currently used solely for precache groups.