address FuncAnimantion trying to take lengths of generators

If an iterable is passed into `FuncAnimation` check if it has
`__len__` before trying to take it's length

closes #1796