regtests for new LRUCache code; fixed bug with LRUCache iterator; and new LRUCache_LEGACY to help transition APIs