properly allocate NSMutableSets as required by iVar type

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
fixed minor semantic issues as suggested by Xcode 6.1

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>