Make solveCubic() more robust
Make solveCubic() more robust

Also, return duplicate roots multiple times.

Part of https://github.com/behdad/fonttools/issues/617

fonttools/fonttools,googlefonts/fonttools