Adding ARRAY_SIZE macro to xio_common.h and removing local defines

Change-Id: I3da03d8a23fd7e8384ac42fd0a94009fc396d57f
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>