Fixed conversion warnings caused by Qt
Minor refactoring of FunctionList using variadic templates.

Please make sure that all supported compilers are OK with this code