Added arrays to JavaElement unit test, which exposed a problem whereby a
custom gson was needed, but not provided. Now moved definition of this
inside class which needs it configured, so no longer passed around as
param