Add ArrayRef constructor from None, and do the cleanups that this constructor enables

Patch by Robert Wilhelm.