Implement accessors using new code generator.

--HG--
branch : clangtypes
Create test suite.

--HG--
branch : clangtypes