Fixes #2216, fixes #2239, allow routes to be defined anonymously.