Properly define getter and setter (issue 6727)
Improve Obj.extend() (issue 6727)