Fix broken parameter parsing

We were mistakenly looking for lines that start with an "@" symbol,
forgetting that parameter declarations have comment symbols and
arbitrary whitespace preceeding the "@".
Add ScriptInfoTest

This will help ensure parameters are parsed appropriately.