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

This is fixed in the master branch