[FIX] Disallow declaration and use of function items. Closes #875.