improve ndarray resolver, add container for values