Change #nest to accept a hash and #unnest to accept a list