fix for issue 286 - param duplication in sinatra view helper with optional params

This fixes the bug with duplicate params being generated if the optional param keys are symbols.

https://github.com/mislav/will_paginate/issues/286