Added constructor for pre-traced functios
VariationalMidpoint compiles