ENH: include shapes in "matrices not aligned" msg

I had to move convert_shape_to_string to common.h so that _dotblas.c
can access it.