crud.CrudHelper: fixed model_replace() and model_update()