Add check of begin/end labels for genblock