Allow custom serialize middleware pre index

For the case of 

{
  field: { type: mixed, es_serialize: function(model){ return model; } }
}