Improved Legendre functions in SpecialFunctions