New (pokescript) AST analysis tool: collector.
Can be used to find warnings/errors, or ASTNodes on other criteria.
One usage for this added: script-validator (check for undefined varrefs).

Additional: script decompiler order improved, sublang can be retrieved from langdef
Updated Pokescript def, distinction between the different trainerbattles is more clear now.