Bug 1084090: Using as_document instead of serializable_hash to add/remove keys

as_document is more resilient in add/remove operations since if the order of the attributes is off, then serializable_hash can fail to remove a key.