Fix: strict should check function expressions (fixes #1244)