allow passing of result code to AgaviValidator::export(), refs #816