cxx2js: Basic ctor, dtor and array support