FIX: issue #415 (Compile crash on nested functions)