minimatch: bugfixes for second bitmap word

Reviewer: @poolakiran

My unit test only covered the first bitmap word, so it let through a couple of
bugs that only occur on later bitmap words.