BUGFIX: evalF1: sanitize inputs, power
TEST: add test for evalF1, thanks to Shayne Hodge.