Fix a leak revealed by ParaView; use SmartPointer.

This also eliminates a warning about anonymous namespaces on Linux.

Change-Id: Ic0b0477925313f34abcfe7d3def80218aa649176
Fix for subclasses overriding EditAnnotations.

The accounting done assumed that all annotations were
contained in the lookup table, but this is not true when
subclasses provide more. This was revealed by the
ParaView version of the scalar bar actor, which adds
min and max values as annotations on the continuous
scalar bar.

Change-Id: I6186f22ee9f29be889fc83522e67968688759922
Merge topic 'scalarbar-leak' into master

cc42420f Fix for subclasses overriding EditAnnotations.
84c42607 Fix a leak revealed by ParaView; use SmartPointer.