nine/device: dump light, material and texture stage state