add doc_type check for fixtures

fixes http://manage.dimagi.com/default.asp?114007#643518