Add some value_and_deriv methods, fix value for LogisticLoss when fv > 34

`value` for `LogisticLoss` was returning `nothing` when `fv ` was big because `if fv > 34 -y*fv else ...` was being parsed as `if (fv > 34 - y*fv) nothing else....`