Fixes GH-434, If branches is an array of array, iterate them separately.

branches when more than one is really an array of array and hence
must be treated as such.