Set error messages for callables

This is a fix that lets the use of callables as in  #3183 using an array with an additional row to set a name for this rule.
Wow, don't know what happened in there. Should be fixed.