fix MSVC7.1 compile failure by free function begin(it, type) and end(it, type) instead of the member functions of it