Improved enum filtering
- Added enum filtering support to memory
- Added support for underlying type filtering