validate statement labels at the end of functions
fix bug affecting function declarators inside function bodies