Fix callbacks in loops

Setting HandleFunc for InfoRoutes is callbacks in loops, so if there are multiple routes, all the paths will refer to the last  marshaler. To fix this issue, should create function outside of the loop and pass marshaler . 

For more details: http://tobyho.com/2011/11/02/callbacks-in-loops/