fix HUD to use new varray and hudmatrix API