Gatan DM3: enhanced metadata parsing

Fixes #10488.