Tasks determine what is learned in visual statistical learning