Fixed examples to match changes made a while ago.
Empty strings are now bound as NULL.
Fixed view script scope issues.