Fix serialization of RouteCollection and RoutesResponse

This should fix #121