src/frontend/variable.c, fix expansion of '$var' when $var is an empty list

test case:
 set foo = ( )
 set foo = ( $foo baz bar )
 echo $foo
src/frontend/variable.c, rewrite `cp_variablesubst()'
src/frontend/plotting/plotit.c, plotit(), fix command line buffer overflow