extend functions to use RandomAccessRanges
Merge pull request #2152 from WalterBright/path-randomaccess

std.path: extend functions to accept RandomAccessRanges