Consolidated argument type conversion code
Fixed bug where quoted strings couldn't also appear as keyword arguments