Fixes issue #1888; added unit tests for fequals