Made list length fields type safe.
Rename.
Message length using Length type.
Typesafe CString type.
Made Pid typesafe.