Adds some basic list operations to lib/std.
Adds appropriate tests for these additions.