Clone custom properties

Custom properties of a File object are deep-cloned. Based on #16

Additionally a test failing on windows is fixed (didn't match a hard coded forward slash in a path).