BUG: Fix ValueError: setting an array element with a sequence

This is fixed in the master branch
Merge pull request #2144 from cgohlke/patch-3

BUG: Fix ValueError: setting an array element with a sequence