Implement equality on BoundClass