Added files missing from last commit.

--HG--
extra : source : f78faa8eb4bb502f2c0198dc76c588609af08a36
Replaced DeclareTraceFunction pass in ScopDetection.cpp with a function that lazily declares the tracer.

For some reason the pass was called by LLVM pass manager infrastructure with an invalid Module object.
Getting the module the region lives in ourselves and calling the function seems to work.
This hopefully fixes the segfault issue pericles encountered.

--HG--
extra : source : 1ce5b2eb0019f00cd3e66c65ff0e2ce16bfd6f73
extra : amend_source : 0af929198e9c3fe9a4f4a9e9cfe164e9c012dff4