text: Add Number/Boolean serialization comment

as per discussion with @kswedberg