Fixed is_mod_func_used() (used from is_script_func_used()) to determin if a function is used from script - we need to follow the IF / WHILE / MODULE set of instructions too.
Reported by Mayama Takeshi - many thanks for the detailed report on this.
Closes issue #98