integral_lists.hpp. Provisional tml::foldl/r implementation