[fixed] Added support for building URLs with optional parameters

You are now able to create links with optional parameters, before if you tried to do this the following error was returned `Missing "param" parameter for path "/path/:param?"`.

Fixes some of the issues mentioned in #290.