Introduce a ReplicateReturnType as a possible workaround of a compilation issue with MSVC+ICC

--HG--
branch : 3.2
Fix MSVC compilation

--HG--
branch : 3.2