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.
Merge pull request #539 from tarun1793/patch-1

Auto pick association fields from REST request