Fixes #1: Fix typo in safe sqrt function, and clean up fungp.util