Add equality spec for UnboundMethod with block
Fix equality check for having a block

Fixes #2384