added some of the unit tests for array. fix splice and slice for server,
fixed #46