more rebust itemsize check.

fix problem that complex64 wasn't supported.