HPCC-11819 - Changes from code review
- Fixed Memory management issues
- Legacy code cleanup
- fixed a grammar issue regarding negative enum values
- Enhanced grammar to support enum syntax currently used by scapps
Signed-off-by: rpastrana <rodrigo.pastrana@lexisnexis.com>