Adding serializable support to maintain singleton instances of enums