fix(doc): Fix Doc::setAttributeValue() on arrays with DateTime's values (closes #4868)