Ticket #5214: Don't read out of bounds upon invalid ternary operator.
Library: added <markup> element
Library: Added <valid> element that is used to define valid input values for functions
Fixed #5252 (Improve check: use Library to validate function arguments in invalidFunctionUsage)
Merge pull request #202 from simartin/ticket_5214

Ticket #5214: Added test case (ticket already fixed in mainline).