Integers can't be perturbed, so their `to_vec` should be empty. Originally suggested in https://github.com/JuliaDiff/FiniteDifferences.jl/pull/187 ```julia function to_vec(x::Integer) Integer_from_vec(v) = x return Bool[], Integer_from_vec end ``` Would also fix (a part of) https://github.com/chrisbrahms/Hankel.jl/pull/27 Did not test yet whether it messes up any existing ChainRules tests.