Rewriting Australian art history, ‘Dangerously Modern’ at the Art Gallery of NSW is equally erudite and entertaining.