Fix ruby narray detection