Fixing type hints on Document that should hint on DocumentInterface

This PR is a rebase of https://github.com/basdenooijer/solarium/pull/198