improve ndarray resolver, add value container