fix nested set_attn_implementation (#49138)
* draft
* fix test so that it catches nested subconfigs
* not necessary
* set_attn_implementation: keep flat loop, match submodels by config identity and resolve nested sub-configs
* clearify tests
* set_attn_implementation: accept nested dicts, aligned with config init
* O(1) config lookups keyed by id
* address review