[BUGFIX release] Makes sure that internal properties do not leak onto created objects.

Fixes #5485.
Merge pull request #5501 from twokul/super-fix

[BUGFIX release] Makes sure that internal properties do not leak onto created objects.