get type size from ctypes