Add type for read-only Earray
Remove hack from tests