Implement enum, max, min as defined in specs 1.2