Fixed wierd bug in Model.Set that was attempting to do casts of array to string
just some syntactical clean up