Added function name resolving from mangled function. Added test case for initializing __local array in kernel which should work, but now fails because it is put to module globals and is not treated.
Finished tests and implementation for converting builtin calls to safe ones.
Added smart pointer generation for certain global variables, added support for finding out last valid address by different types which helps implementing struct support. Added simple test for structs. Some refactoring and making code more clear.