Adjusting class allocation to use new instead of alloc/init.

As per @irbrad's suggestion.