Allow LogEntry::setRelations to work with array(tag => value)

Change-Id: I5a3d9799cd2125a02871b1c6a9ef7745eadb518d