fix inheritance of getters/setters in class prototypes