Marshalling problem solved - there's a reason the Ruby docs refer to marshalling 'an object' - dumping hash of relevant email fields for bot instructions into an array before serializing and dumping into binary.