Being confronted to this issue right now i would like to know if this old discussion has ever been solved ?
i don't think that the behaviour changed ...
i switched to k_cext for the specific tasks ... there you can access a $x value with the macro VALUE(" $x-bla") (the space in frond of the $ is necessary to replace the $x with the argument ....
cheers... tim