This function needs to return the "undefined" sigil for unknown types so that the actual error handling triggers instead of a crash.