Allow boundParams to be also integers, booleans.

I just spent 1 hour thinking why my collection's array isn't being cached.

That was because:

1. first I forgot (didn't know) to set resource's params like `{id: '@id'}`

2. Then it appeared that only string values are being cached, but my `id:` values were integers, so they didn't cache at all.