MAINT reuse convert_shape_to_string in not_aligned

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