[ACTIVEMODEL] Use Object#id#to_s in `get_id_from_document`

Again related to Mongoid, see #775.

Closes #775