move build_carray from pickle_support to .utils