Extracts an array of the inferred element type. Returns None if any element has the wrong type; empty arrays return Some([]).