Change definition of Real type from define to typedef in tests.