removed trailing comma.
updated test suite reference images after recent switch to dynamic color pipeline, and added missing ones.
small tweak in runtestsuite.py console output.
added a script to update reference images in the functional test suite.
foundation::square_distance_point_segment() now properly handles zero-length segments.

this fixes assertions in the world space and screen space wireframe modes of the diagnostic surface shader.