compiler: Missing warning for duplicate function parameter names

Flex compiler warned, but Royale compiler seems to have forgotten the same check

Plus, new tests for this warning and some other function/parameter problems
4 files changed