fix toString issues on arrays thanks to FindBugs
various FindBugs fixes