adding check for primitive types since attributes now come from ivars
Merge pull request #2 from chamarapaul/master

adding check for primitive types since attributes now come from ivars