The log code is calling .id on each argument (just to see if it returns an id), which is a very bad way to identify what type of object it is...