Implement Glob.matchAsPrefix()

This also allows matchesFull() to be used with Glob patterns.