fixes #685
Merge pull request #736 from enesakar/fix/3.1/issue-685

fixes #685
InMemoryFormat.CACHED will use equals of the object in object-format, not of the binary format.
Merge pull request #738 from pveentjer/improvement/3.x/inmemoryformat-cached-and-equals

InMemoryFormat.CACHED will use equals of the object in object-format, no...