Wilson loops and the geometry of matrix models in AdS4/CFT3