Working memory, reading ability and the effects of distance and typicality on anaphor resolution in children