Function getAreEqual

Returns the current areEqual function, which can be used when overriding using setAreEqual to compose comparison checks