[test][iterators] qualify free functions as inline