r.js optimizer skips define(factory(root)) rewriting. Changing this to define([], factory(root)) fixes it

After optimizing my application it fails on anonymous define() inside ConduitJS. Apparently r.js requires define([], cb) function fingerprint in order to rewrite it. This patch fixed it (and also corrected few minor issues, which might get in a way when minifying code)