Fix handling of arguments in QM.curry
Add head and last methods to OrderedMap