vmstate: add support for arrays of pointers