Remove duplicated code in agrad/rev/matrix/multiply.hpp using enable_if pattern.