Add exclude to ObjectExists and NoObjectExists

Fixes for #368.