Fix hang in test47
Ignore signals correctly
Do proper grow array cleanup on kShellOptRead