error in handling simple arrays parameter

Possible fix to #687
fix #688