As Joey mentioned, we avoid the code duplication and write
``dot{T<:Number}(lhs::Vector,rhs::JuMPDict{T}) = dot(rhs,lhs)``