Fix crash on scene mode change.
Add polyline material examples to Sandcastle.