Adds Model.ensureIndexes() to re-build indexes at runtime.