Fixed generation of standard Object methods under certain circumstances.