pub const MAX_REFERENCE_DEPTH: usize = 10;
Maximum depth for resolving parameter references to prevent stack overflow