I'm using 4.10 I tried this problem on 4.11 and it is happening too.
Notice that the problem is not passing the values as vars to the "writevalue" is passing them first to a function and inside that function to the "writevalue"
_________________________
Regards