Add Idempotent Append and prepend to List

This is necessary to reduce the overuse of Rlist. There are a number of cases where Rlist is  used as a container to hold a list of unique items.

Please review and comment on:
1. Function naming
2. Making the Compare function mandatory for these functions to work
2. Tests

and anything else I might have missed.