Added benchmarks to test code. Added a missing promote_rule in Residue.jl.