Refs #9531. Mapping fit weights in CostFuncFitting.

Instead of calling the virtual function getWeights each time fit weights are accessed in LeastSquaresCostFunc, they are mapped once before the calculations.