#414 Fix primitive array handling