Java-oshmem: replace Addr.offset/duplicate by slice
Java-oshmem: some examples