Fixed LRUCache getter cost calculations.

Because the cost arguments weren't references, the costs weren't getting returned to the cache.