AbstractObject: _unique fix

First we need to check if array and only then use count().
Merge pull request #305 from DarkSide666/patch-1

AbstractObject: _unique fix