Scala Common Enrich: make sure to error a JSON if > length (#567)