Allow string or array Cursor::hint() argument

This is a copy of https://github.com/doctrine/mongodb/pull/159, which I inadvertently applied to `1.0.x` and needed to revert.