Simplify implementation of the predicate `unicode_category/2`, thanks to the fix in the previous commit