Don't store route objects in dispatch data

This allows it to use var_export instead of serialize for caching
the dispatch data.