Generate correct lists in cpp types

Change-Id: I883de682a881ef2cd6f7f80814429ea63ff549f5
CppObjectType: remove uneeded code

Change-Id: I62e10ac211d0ceedb45d1e758e63c93090a82ff0