to make this work for reals, you can do:
``function *{T<:Real}(lhs::Array{T,2},rhs::JuMPDict)``