re adding partial key ... removed it by accident

also having purge_doc return last version in case of getting doc_type at deletion event (though we never delete anything)