Fix bug where classes used in stored fetch requests were not declared in headers of generated classes.