small cleanups to CArray