Updated custom_append, extend, equality functions