Fix for callables with error messages

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.