Refactor initializer list constructor of nd::array