Add test case for Object.prototype.freeze.

Please take a look.
Also add tests for (non-object) primitives, e.g. `'foo'` or `42`.