std.internal.math.errorfunction: update isIdentical usage

update unittest

update nextUp unittest: added assert

update nextUp unittest: added second assert

update nextUp unittest: added third assert

optimizer check

std.math: 1. use scope import for poly template 2. isIdentical BUG 13457 workaround