Fixed toNative switch for class type

Fixes the exception "The method \Underscore\Types\Arrays::reduce does not exist" so Underscore::reduce(), map(), values(), etc. work again.