Added tests copying and transferring ArrayBuffers and ArrayBufferViews b...

...etween main thread and workers. Refactored test cases from array-unit-tests for reuse.