make stringbuf a wrapper, make sure that ArrayImpl and StringImpl are generated before usage (through extends)