Allow custom serialize middleware pre index

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