std.math: added isIdentical for float and double, poly template

Update poly and isIdentical to use other types