Auto anchor inserts entire tuples instead of just the ids

When using auto_anchor the entire array of tuples gets added to the anchor array instead of just the ids. This change fixes that, and makes it so that the anchors arg will override auto_anchor.

Also refactored the code to reflect that $args will be defined, even if the user doesn't supply it.