First (probably buggy) attempt at constant implementation,
succesfully reused code used to translate datapieces (this is good and
kinda proves that code is not that bad after all, but it still needs
some heavy refactoring becaus eit looks awful...)
Scripting gate supports everything that is needed at this point, i.e.
function declarations. namespaces and function calls.
Static type checking is not yet implemented but current call validation
implemenation should be sufficient.