Copy correct number of bytes when in unicode mode.
[PLAT-3186] Correct HistoricalValuationPnLFunction to work with modified HistoricalValuationFunction.
[PLAT-3231] Avoid additional market value decorations when composite data providers are not used.