java/loader: Add assertion for array types

We don't support loading array classes yet. Add an assertion to avoid
array types from being resolved to nullptr.

Signed-off-by: Pekka Enberg <penberg@iki.fi>