Added support for arbitrary expressions as parameters to wct_proc and wct_thread