rhogen: set update method as static, fix custom method generation