Extend newObject and newArray methods of Rhino Context.

Currently, arguments must be wrapped in an array when using newObject
and newArray method. It makes code verbose.
Refactoring code to use ContextOps.

The previous patch impelents ContextOps to extend newObject and newArray
methods. This patch makes code use ContextOps.