Fix cases where we assign an object to a prototype member globally instead of in constructor
Merge pull request #7489 from adobe/nj/fix-prototypes

Fix cases where we assign an object to a prototype member globally instead of in constructor