Fix subqueries: they weren't copying the already-valid array properly leading to junk data getting synth'd