Fix externalization for optional route params