made it so animate() can operate on lists and maps