support ref parameters for simple types