Comments on quiver gauge theories and matrix models