safe publication some minor fixes

Copy arrays when passing as a constructor argument.  An unintended change may be done and object may become mutable otherwise.