method

flatten_deeper

flatten_deeper(array)
private

Array#flatten has problems with recursive arrays. Going one level deeper solves the majority of the problems.