Support managed object context detection with arrays