RMS: fix basic expression interpreter issues.
RMS: unit tests and fixes for basic consumption and prioritization rules