Avoid assertion failures in debugging perls

This is arguably a bug in perl -- the new.+OP() macros should let OP_CUSTOM pass -- but even if this were fixed in the core, something like this patch would still be needed for older perls.