Fix some remaining PHP-isms in the parser(s).
Adding tests for parsing list structures