added cpp file for member. Cleaned up the addData for standard types. Hacked so that static types dericed from standard types still get stored correctly.