Fix getPublic for arrays