Added more options to setter and getter

Now, it accepts scalar, string, list or array of numbers and strings.