Fix typo in typed array construction - closes #3.

Does not address issues with constructing arrays of primitives (or
arrays). Currently not possible to do the latter.