Finished an untested version of array and primitive reading for C++.