Add config timeouts for range_loop and stream

Forward port of #163