lib: Update parser to handle init/final as state names

2 jobs for master
in 1 minute and 40 seconds, using 0.0 compute credits, and was queued for 8 seconds