Write results to Asterix

+Minor changes and fixes to Asterix read

This change is not compatible to the stable Asterix version since it requires a small change in the ARecordSerializerDeserializer.