Remove allocation of tape in MXFunction, #884
Remove allocation of tape in SXFunction, #884