minor improvement to Enum serialization; allow Shape.ARRAY as an alias for 'use number (index)'