ISPN-3012 Defensive copying should recompact after returning values

* Recompact when returning a value to avoid returned values
being modified via client side direct reference.
* When using storeByValue, make safe copies of entries in
invokeProcessor so that cache can be updated using atomic
operations.