Remove mocks from range tests of mimetype and license indexers.
Also fix hash types and add type checks.
(Includes commits from D786)
Migrated from D787 (view on Phabricator)
Also fix hash types and add type checks.
(Includes commits from D786)
Migrated from D787 (view on Phabricator)