added LazyEntryView class overrides getValue method with a policy check and deserialize function to avoid unneeded deserialization
added test
fixed getKey()
Merge pull request #3086 from hasancelik/fixes#2665-master

fixes #2665