GeneratedResource should not extend InMemoryResource since GeneratedResources can be cached (sometimes to disk) and InMemoryResource does not provide a default constructor. Resolves #282