Improvements for the static:// streamwrapper

makes is_file work as expected.

cc @DeepDiver1975 @MTGap @karlitschek @bartv2