Fix for MULE-7132. Add a wilcard() function for mel.
Add more expresive exception for invalid arguments and more tests