Mark `Path` members `readonly`.

The comment says immutable - now the compiler can help make sure that's true.