Fix duplicate declarations of many variables

Fix quite a few function calls missing their ()s

Fix other miscellaneous warnings, build should be error free.
More mimbrane changes to eventBuffer usage.
Merge branch 'master' of https://github.com/Fenoxo/sourceTiTS
Merge branch 'fixwarnings' of https://github.com/mijhy/sourceTiTS into mijhy-fixwarnings

Conflicts:
	classes/Items/Miscellaneous/HorsePill.as
Some more mimbrane fixan. Did some testing of the merged warning removals in the process, didn't seem to fuck anything up but it's not like I've done anything extensive.