add doc_type check for fixtures
Merge pull request #3434 from dimagi/fixture-wrap-fixes

add doc_type check for fixtures