#16664: Add regression tests for glob's behaviour concerning "."-entries

Patch by Sebastian Kreft.