Trailing optional value with format bug

Trailing optional route patterns should use their default value when a format is specified