Revert "Make Command and Path more string-like"

This reverts commit b3adc4cfe3bfb0fb20c902e35c36cc90475a3902.

Turns out that this doesn't provide a lot of value, since a lot of
operations don't work on the Path and Command objects anyway, and it's
even somewhat misleading.