fix some typos in the array class
add optional shape and dtype args to array ctor
connect c-api error stack to Python runtime error