Fixed deserialising boolean values
Merge branch 'master' into production