Identity comparison for bigint

Complementary to issue #631

**Not resolved**