Fix dot to compute products one by one to avoid huge einsum overhead
Use generalized ufuncs to compute dot products efficiently
Fix bugs in rotation speed ups caused by an einsum bug