Use ordinal() to compute enum hashcodes.
Prohibit array keys even if using custom partitioners.