properly handle value parameters and variadics for #1127
tests for #1127