Improved performance

String handling performance for arraydb.to.arrayr, and crossprod array
creation