Rewrote the test to be more reliable, add test for invalid size exception Reviewed-by: kvn
Added missing exception path for multidimensional array allocation and use Throwable type instead of OutOfMemoryError for allocation's exception. Reviewed-by: twisti