Add NUMA allocation to the language

Allow to specify the thread that should allocate the stream with
`allocated by n' when defining a thread
Add test for NUMA allocation