Restore lighting settings after render.

With several implementations of Mesa, not restoring the
light-model-color-control to default was causing weird rendering as reported on
the mailing lists. The render window would randomly show garbage or single
color, etc. The issues seems to stemming from the fact that separate-specular
color control was not restored to the original value after it was changed. It
must be noted that glPushAttrib/glPopAttrib was not taking care of these
parameters. Hence we explictly restore these to the default if needed.

Change-Id: I5ca29dc850f2aa8e23e6bc9434253df14561ce74
Fix bad point detection for large double values

The bad point detection was incorrectly detecting large double values
as bad, use templated code that works with the original type and a set
to ensure a sorted, unique list of bad points is generated. Modified
the test to use a second corner and one series that is very large to
test the functionality.

Change-Id: I08322a0b3fd728e496d2d5f1f1901054afe4eb7d
Merge topic 'fix_coloring_issues' into master

02269690 Restore lighting settings after render.
Merge topic 'charts-fix-big-doubles' into master

b65dcc3c Fix bad point detection for large double values