Fix a problem with the InMemoryFile prototypical inhertance chain