Fix #95 handle various orderings of IN, OUT, and INOUT parameters