immutable primitive array/NonEmptyArray wrapper for Scala