Fixing type hints on Document that should hint on DocumentInterface.

Related to https://github.com/basdenooijer/solarium/issues/191.