Do not enforce required attributes if attributecollection is supplied.
Merge pull request #16 from am2605/issue-13-attributecollection

Do not enforce required attributes if attributecollection is supplied.