Added encoder for MessageArrayField