reimplemented array_walk_recursive() in PHP4