Changed the use of ...args to use just the variable arguments due to a problem with it in Chrome.

Some optimizations for the process of the object creation.