New generic helper function for searching arrays of entities.
Lots of helpers around finding the right pricing component or PCV.
More progress on PCVamendment test.