Added support for boolean values in the parameters array

Converts True to 1 and False to 0