added support for boolean values and arrays