fixed issue #2279 Javascript problem in Java8 - array serialization