Fix for #1788: make sure we strip $canonical before $priv
Cosmetic: cleanup
fixup
Fix for #1788: Count the anonymous class for method param decl with lazy specifier
Test for #1788: Test: non-shared method with defaulted function parameter and local object causes ModelResolutionException