A Gillian Wearing exhibition at the National Portrait Gallery puts her work in dialogue with her largely forgotten Surrealist inspiration.