Generic code cleanups

- Replaced more proprietary array methods by their java.util.Arrays
counterparts