handle associative structs as model and avoid any crashes during pretty_stacktrace()