Fixed cpp.gen generator priorities and added new test for importing modules.
Added stdimports to cpp generator.