Fix GeometryVisualizer material batching when the material in an existing batch changes.

Fixes #1974
Merge pull request #1975 from AnalyticalGraphicsInc/issue1974

Fix GeometryVisualizer material batching