Fix bug where arity is off by one.

The arity reported for tuples and objects is off by one and this change fixes it.