Nullable arrays patch

Partial fix for RandomEventTest.