Bug fix for the variant Java object to Scala object manual conversion.