Added support for arrays in parseKeyValueMessage.