Fix isalignedstruct

NumPy 1.6 does not have numpy.dtype.isalignedstruct.  We implement it for that version.