script parsing and typing improved: swing scripts almost compile