std: allow io::File* structs to be hashable
serialize: make Paths serializable
syntax: change the #[deriving(Hash)] typaram variable name
auto merge of #12822 : erickt/rust/cleanup, r=acrichto

This PR makes `std::io::FileStat` hashable, and `Path` serializable as a byte array.