Fix problems/flaws detected by cppcheck
AS Update + add experimental support for named arguments and 'auto' keyword

Patch by GGLucas.