pidl: Assert that python arrays will not overflow the C array