fix hash computing for arrays and delegates