parser: Reset label_nest_level before parsing reference
parser: Reset label_nest_level before parsing reference

Porting the javascript fix

https://github.com/jgm/stmd/commit/aabd412250999ecd9c1033966ddfe8a66e26972f

lu-zero/CommonMark-py