I'm not happy that ``BranchType`` and ``ListFlags`` are different types. ``BRANCH_LOCAL`` and ``BRANCH_REMOTE`` have to be casted every time when used with ``BranchForeach`` as ``ListFlags``. Is there any nicer way to handle this? Maybe use ``BranchType`` instad of ``ListFalgs``.