fix DynamicEntry::getFields to restore keys to returned collection