Prevent in-place array replacement (Issue #424)