Add a test suite using jstest for yT.
Fix bugs in yT found by testing: Descriptors must be checked as objects before looking for properties. Fix a typo in constructor generation.
Remove now-redundant writable flag.