Cleanup log._eval_is_zero, add tests