apedec: use sizeof(field) instead of sizeof(type)