Fix OmeroJava tests.

This also normalises the way static methods from
omero.rtypes are used in the files changed in this commit.