General refactoring and improvements to bulk snow implementation
Also reverts some recent changes to layer state handling which were causing type instability/allocations.
Also reverts some recent changes to layer state handling which were causing type instability/allocations.