Clear record when doc_type was changed

@czue http://manage.dimagi.com/default.asp?140716#785508
@snopoke I must add in ```fakecouch``` generating ```_raw``` and we got one more property in indicator.