Improvements for handling exclusion with arrays