Fixed bug reported by Steven J. Ackerman that destroys prepared out-data.
Message sata initialisation is now done after external calls to allow for
them to also send events.