[MODEL] Refactored update_document to use as_indexed_json instead of @__changed_attributes. Removed anything related to @__changed_attributes. Fixed tests.