handle Hash/Array parameters, fixes #303