type_traits: replace boost integer_traits with std::numeric_limits.