Add type information to the RAC() macro

Should prevent issues like #344.