Add support for both way comparison for uint256/uint160
Summary: Right now, they only compare one way, which is inconvenient.
Test Plan: Added test cases to cover the new function.
Reviewers: #bitcoin_abc, schancel
Reviewed By: #bitcoin_abc, schancel
Subscribers: teamcity
Differential Revision: https://reviews.bitcoinabc.org/D1526