Gens 3 and 4: Fix item checking

Added item numeration to all gen 3, 4, and 5 items so they can be checked for legality in previous generations. Furthermore, items created for mods (for instance) cannot be now used with the Pokemon ruleset as isNonstandard items.