fix travis tests

- replace java.util.Objects.hashCode with Object.hashCode() to support java6
- add Array.length method emulation