Fix arrays in nested scopes. Add support for isset.