Modified instance.getErrors() to include submodel array errors