Flesh out copyMemberDef methods with copyModuleDef.
Boil out some duplicated parser logic.

Our focus today is on packages and package objects.
Merge pull request #2425 from paulp/pr/no-package-objects

Boil out some duplicated parser logic.