Evolution, self organization and neuroscience
I don't fully understand your question. I hope the following will help a bit.

I'd like to pinpoint what seems to me to be one important mistake in your text. Reading you we have the feeling that selection acts on wires so to select the best combination. If this is what you meant, then it is obviously wrong. The thing is that the change that get inherited are alleles. An allele is a variant of a gene. For example: gene codes for eyes color. A bi-allelic gene has an allele which codes for blue eyes while the other codes for brown eyes. Assuming that there is genetic variance underlying the wire connection variance in the population, then yes selection will select for the best genetic variant. This does not necessarily mean that this best genetic variant is the most optimal possible to imagine solution. The most optimal allele might have never been created just because of the randomness nature of mutations.

EDIT:

To answer:


  Do natural selection always bring a particular phenotypic (loosly speaking, phenotype = morphological) trait to its optimal state?


No! It does not.


The main reason is that the genetic variant coding for this optimal trait does not necessarily exist because of the randomness of mutational process. Also, because of the metabolic pathway bringing some variance to a trait, it is often very hard to even imagine a  mutation that would allow creating a new, more optimal, phenotypic variant. So indeed developmental biology has to be taken in account to.
Because in absence of genetic drift (infinite population), selection can only bring genotypes uphill in the fitness landscape. If a very high peak exist somewhere in the fitness landscape but in order to reach such peak, 10 mutations are needed were all of them in any other genetic background are deleterious (correspond to valleys in fitness landscape), then the optimal high will probably never be reached (except if all 10 mutations appear suddenly in the same individual).
Because selection might be weaker than genetic drift. Also, different subpopulations might be in different environments were different traits correspond to optimal traits and because of migration (gene flow) between subpopulations, it is possible that no optimal phenotypic trait can be ever seen although all the genotypic variance exist.
The seemingly most optimal trait might actually not be really optimal. For example: Peripheral vision might be limited by the brain rather than by the eye because it would be an important energy cost for the brain to process more information, a cost that might outweight the benefit of having a better peripheral vision.