Various syntax tidyups.
Add weaklist to EnvObject.