decouple variable maps from material layers

Allows a single layer instance to be added to multiple different
materials.