added array resource for optional parameters in all controlers and serviceRPC