Updated namespace references.
Fixed  issue where statements couldn't be added to the document outline, because their parent is condition or loop.
Updated source code positions for Code Folding.  Fixed bugs with Error recognition and moving on.