Added implementation for NSArray#compact