Make template params take arrays

Currently the templateParams in SearchRequest is a Map<String, String> - this means that it could not take Arrays as part of the parameters, which is not the case when accessing it through the REST api, and also as documented in the docs for this feature.

This changes it to Map<String, Object> so that it can take more complex data-types.