Added array flattenToLevel rubyish methods.