Per's patch for allowing functions of type BuiltinFunctionType and partial in the definition of a time-dependent Hamiltonian