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

2 jobs for master in 1 minute and 40 seconds (queued for 8 seconds)