ASSTags: add method for checking class membership to ASSFoundation; continue tag deduplication; minor optimizations