add __hash__ methods to Generator, File, Hash