Finishes converting to arrays

There's still segfaulting issues to be resolved.