A horrible, evil, ugly hack to fix an environment issue.

Record structures are now passed a string, which is used to produce more coherent error messages.