Fix reset implementation of some parser classes