fix for function decl #82

Using the same logic for deciding if a {} is a block or an expression
for function.