Fix C++11 builder under GCC

Use decltype(T) instead of typeof(T) under C++11

MD-19353