SlashPath: add .endsWith()

And all its bizarre behaviour...