some refactoring for Entry class
str and to_str fails if the value is not an array