Fixing some notices caused by parse errors in class and function declarations. Possible fix for #316.