Improve boolean handling in snapshot/restore request parsing

Fixes #4949
Randomized number of shards / replicas & add mapping for numeric fields
filtered query parses _name incorrectly
fixes #4960