Add methods for partial value caching in PairQuantity.

The stashPartialValue and restorePartialValue methods are now
called from PQEvaluatorOptimized::updateValue to handle merging
of partial value after the structure has been updated.
Add clearEvaluatorCache to PairQuantity.

This method allows to reset PQEvaluatorOptimized if some configuration
variable changed beyond update.