Better support for passing in objects derived from ESModel and/or ElasticSearchModel