[src][test] Fixing bug where list_reverse returned a list_node instead of a list and was incorrectly copying an additional item into the list during reversal