Warn when enum contains wrong member types.

Throw away all enum members that aren't properties.

Fixes a crash when somebody attempts to add other types of members
that don't have a :type field, causing the #infer_type method to
fail.