Added tests for combining arrays with extend; fixed issue with combining arrays.