PNaClContext: implemented array, empty, toArray, add(NDArray) methods