Added optimized writeStringArray to java binarywriter