Currently all statements are handled as arrays with lots of compact and list methods. This should be changed to its handled via objects