Objects as environment records (Fixes #3)