Support of ref consistency for create, update and delete. Issue #25