Preserve record cache entries.

Instead of copying the record from one cache entry to the next, copy the
entire entry. Created the new functions `encacheEntry` and
`uncacheEntry` to copy entries bewteen page caches, instead of caching
and uncaching records.

See #228.