title: Script to return array for scripted metric aggregation from combine
body: <p>For <a href="http://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-scripted-metric-aggregation.html" rel="nofollow">scripted metric aggregation</a>  , in the example shown in the documentation , the combine script returns a single number. </p>
  
  <p>Instead here , can i pass an array or hash ?
  I tried doing it , though it did not return any error , i am not able to access those values from reduce script.
  In reduce script per shard i am getting an instance when converted to string read as 'Script2$_run_closure1@52ef3bd9'</p>
  
  <p>Kindly let me know , if this can be accomplished in any way.</p>