Add some parsing tests, fix lexer when processing stream with spaces at begin and end
Rename Heap to Scope
Implement heap and references