ScriptInfo: fix bugs in param attribute parsing