Allow heightfield color/material layers to be of different resolutions than the height layer.

Ah I see, you're right.  I was off one curly brace on the closure of the foreach loop.