fixed VFM derivative computation for array outputs and added bool to assure that train is only called once
fixed VFM derivative computation for array outputs and added bool to assure that train is only called once

relf/smt,SMTorg/smt,SMTorg/smt,bouhlelma/smt,relf/smt,bouhlelma/smt