Allow custom serialization of autocomplete models using a block