Minimal script for array offset segfault