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