bugfixes in script_bin2list()