fixing an issue with multiply in SerialDenseWrapper.h