Entity copy constructor does not copy the messages
See line 610 in entity.h.
If this is on purpose, maybe the copy constructor should be made private? At least, this needs a prominent documentation, because this renders iteration over ResultSets error-prone (and very hard to debug).