Array source index limiting

Fixed the Array Source properties window so that it will not allow you
to set an invalid index. Added a data validation method to perform data
validation on the block's data.