Fixed bug where return statements weren't type checked. Added smoothstep and frac intrinstics