blobmsg: add blobmsg_check_attr_list() to validate element types of arrays and tables