fixed lmgamma in fvar with tests