This converts lists where all elements have the name attributes into
attrsets where the name is inherited from the element. Except for a
special case (initContainers) where execution order is determined by
list order.
All other lists are converted into attrsets with an index as name so
that they're also easily overrideable. This is an optional setting that
takes the bad parts out of using imported manifests.
With this we'll be able to convert imported resources into attrsets that
we can easily override with Nix. Then we convert back into lists that
Kubernetes expects.