ee_check and friends

The new `ee_check`, `xe_check`, `rie_check`, and `rpe_check` macros call
a function whose return value isn't enough to determine whether an error
occurred.  In this case, we must call `cork_error_occurred` to check for
an error.  If an error has occurred, it's propagated or handled just
like the existing similarly named macros.