fixes an issue for attributes coerced as arrays
Merge pull request #2 from philm/master

fixes an issue for attributes coerced as arrays