Invalid prototype for initialized variables in inherited classes

Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2581

Reported by Martin Stjernholm mast@roxen.com

This program:

    class A (int i) {}
    class B (int i, int j) {inherit A;}
    class C {inherit B;}
    int main()
    {
      C (1,1);
    }

fails with:

foo.pike:6:Too many arguments to C.
foo.pike:6:Expected: function(int : object(is 65602))
foo.pike:6:Got     : function(int(1..1), int(1..1) : void | mixed)

Problem exists in 7.2 and 7.3.