Minecart improvements

Fixed lots of stuff including FS308.

See commit messages.