Fixing broken loop logic in global setter/getter functions.
Updating prototypes to specify const for read-only variables.
adding initial support for copying objects.