merge: expose multiple merge bases

We always calculate multiple merge bases, but up to now we had only
exposed the "best" merge base.

Introduce git_oidarray which analogously to git_strarray lets us return
multiple ids.
Merge pull request #2481 from libgit2/cmn/oidarray

merge: expose multiple merge bases