Fix array of types inside model + give errors a tojson string