For some weird reason lodash is unable to clone route with optional parameters.
in lib\utils.js utils.groupRoutesByPath if you use Hoek instead of lodash, it works.
// const secondaryRoute = _.cloneDeep(route)
const secondaryRoute = Hoek.clone(route)
Indrek