Conversion from adouble v2 to ea for directories

Fixes bug #500.