Optimize value named arguments

Implements and closes #1794.