Fixes #2029 (ClassCastException when editing Discrete Mapping for Node Label)
Refs #1969: Fixed CyNumberPropertyEditor and refactored NumberVisualPropertyEditor.