Fix dimension error in core.dot_mm, add tests

Thanks to Radek Hofman
doc: Use rst substitutions to reduce text duplication

http://sphinx-doc.org/rest.html#substitutions
doc: reflect that dtype is now in ceygen.dtype module
elemwise.subtract_mm: more and better tests