When closing a (shared-cache) database connection, be sure to clear out all
KeyInfo objects cached on Index objects.
Proposed fix for ticket [e4a18565a36884b00edf].
Test case demonstrating the problem described by
ticket [e4a18565a36884b00edf].
Improved comment on the sharedB.test test script.
When closing a (shared-cache) database connection, be sure to clear out
all KeyInfo objects cached on Index objects. 
Fix for ticket [e4a18565a36884b00edf].
The KeyInfo cache must be cleared before closing the btree, not after.
Revised fix for ticket [e4a18565a36884b00edf].
Make sure the WhereTerm objects are fully zeroed when they are allocated.
Merge the shared-cache KeyInfo fix from trunk.