Adds an aliases function, improves removing from dicts