Add clone method to StructureAdapter class.

Needed by PQEvaluatorOptimized to store the last structure that
was evaluated and to allow optimized evaluation for a changed structure
instance.
Cache the last structure in PQEvaluatorOptimized.

Support optimized evaluation for a modified StructureAdapter instance.
Add non-constant PairQuantity::getStructure().