fixed tanh to not return NaN for input values outside the range [-40, 40]
Fixed header order to satisfy linter
Merge pull request #1455 from seanbell/tanh-fix

Fix tanh layer for badly scaled input values