univalue: add size(), empty(). more const-ification.