Added ordering checks.
Added C top-level ordering checks and name checks for structs, fields, globals and functions.