Auto pick association fields from REST request

Making a REST PUT request with the association field and value throws an error at the forEach step. Correction to that. 

Additionally, for One-to-Many or Many-to-Many all IDs can be passed as comma-separated values.