Fix for #326

- fixes issue #326 - adds isEnumerable and isNotEnumerable macros
- added required test cases