Shellvars: support all types of quoted strings in arrays

Patch from webmeister.  Fixes ticket #357.