Ensure FunctionDeclaration is bounded to the block scope.

ref #33