fix Issue 10377 - std.typecons.wrap doesn't consider private members
Merge pull request #1350 from 9rnsr/fix10377

Issue 10377 - std.typecons.wrap doesn't consider private members