Fix native-store function to implicitly cast Strings to files.