refactor, add tests, update readme.

Should now produce expected results on all tests.
answer here: https://github.com/sindresorhus/multimatch/pull/5/files#discussion_r14045948