minor update of hypot to ensure consistency of output types
Merge pull request #5219 from lindahua/dh/hypottypes

minor update of hypot to ensure consistency of output types