Function areEqual

Uses the function registered with setAreEqual to determine if two values are equal