added test for ao uniqueness
added check for nil resource id in ref_id uniqueness check
Merge pull request #231 from hudmol/34168827-ao-ref-id-unique-only-within-res

34168827 ao ref id unique only within res