replace list by listOf using same style as for attrsOf

Also see https://github.com/NixOS/nixpkgs/pull/382 which deprecates types.list