Fix a bug with functions across scenes

Fix a bug with functions across scenes.
The global vector currentFunctionParameters is now named using the scene mangled name to avoid multiple declaration around scenes.

Before merging : test if it works when an function is linked to another scene without events copy.