Fixed bugs in generic/dot_impl.h where iterators were not advanced after initial assignment and std::conj was missing in initial assignment in certain cases. Added unittest/dot_test.cc