Closes #1081 by adding the `anonfuncs` option

This option allows anonymous (unnamed) functions.
If false, anonymous functions will raise a warning (W126).