Compiling thaw as macro to reduce stack depth