enums construction compatibility with julia 0.2