Broadly the same as function expressions - these actually are statements but we're limited by the inheritance tree. Fixes #1044