Fix issue that return the internal NSMutableArray instead of new NSArray

Signed-off-by: Luca Bernardi <luka.bernardi@gmail.com>