Change array types naming convention from typearray to {array, type}

Tests are all about connection so not relevant to encoding/decoding