Implement auto-determination of static array dimension if a slice is assigned.