cartesian product of enums (ticket #442)