utility/tr1: Remove reference to std::tr1
Nested: Add two argument version of valid
Generalize range and partition_loop to arbitrary integral types