Attempt to cover all use cases of elementAt.