write CLASS validation to mapfile (#4596)