fn extract_feature_map(dynamic: Dynamic) -> HashMap<String, bool>
Extracts feature flags from a Rhai dynamic value.