make Stat and FsStat serializable

useful for writing them out to disk or over the wire