Fix a bug that kaminari doesn't work with nested param_name

fixes #53 but this bug still appears when kaminari is used on sinatra.