Add a few extra typemaps so that functions can be chained