php: handle booleans

Booleans were not handled when serializing to PHP.
Merge pull request #31 from vincentbernat/fix/php-booleans

Fix/php booleans