Fix TypedArray prototype caching issues. Close #6