t, f = hyper_as_trig(e) should preserve f(t) = e invariant

This was not the case for constant expressions, see #7761.  Closes #7761.

@smichr
Something like this?
```
trigsimp(cosh(pi/4)).evalf(3) - 1.32 < 1e-2
```