Incorrect function used for counting array items in YaPI.

As a consequence bond device couldn't have more than two devices.
Updated changelog.