added model transformer boolean to sonata boolean
Merge #1303 and tweak code to be BC