compute complex norm in a way that does not overflow. add test for this
add hypot function that works on all types
make complex norm use hypot to eliminate redundant code
Merge pull request #305 from wwaites/master

compute complex norm in a way that does not overflow. add test for this