Slight tweak to template metaprogramming for iterables