A number of other minor fixes, plus support for keyword params in patterns