Copy getters and setters from parent into child when extending

Fixes #3536. 
Yeah but so can `Object::constructor`, so you're not gaining anything.