bug fixes related to create a new resouce with REST using an Array in the json input.