FIX: issue #418 (FUNCTION can't include nested functions)