CPRuleEditor fixes

- Remove unused code and undefined variables in CPRuleEditor
- Fix static text field size in CPRuleEditorViewSliceRow
- Add missing @end in test app