Fixing type hints on Document that should hints on DocumentInterface.

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