Enum.parse now returns the default value when given an invalid name.

Signed-off-by: John McCutchan <john@johnmccutchan.com>