Test case for an array crash found by Lukas.