Merge 64-bit fixes for dotblas into your optimizations

... and some commits from `master` as well, I couldn't really avoid that.

All tests pass.