Handle POJOs in util.formatValue