UniValue: add unit tests for arrays, objects