Extreme photopolarimetric behaviour of the blazar AO0235+164