1. Fix for IllegelArguementException for Edm.Single properties
2. Removed unused code.
3. Added break in invokeSetter to avoid unnecessary iterations.