Fixed bug in CreateEnumValue/improved type guessing.