use named generic types in generate_solution_type (#2707)

* use named generic types in generate_solution_type

* "Update Substrate"

Co-authored-by: parity-processbot <>
11 jobs for master in 25 minutes and 53 seconds (queued for 2 seconds)