Adding boolean serializer for 0 and 1