updates to arrays and strings, should fix both #13 and #14