Merge BaseLocalArray into LocalArray

In this PR, I merge the `BaseLocalArray` class into the `LocalArray` class, and move the associated functions from the `base` module to the `localarray` module.

This move should allow us to simplify some `LocalArray` initialization logic, but I haven't tried to do that yet.