Fix compile error with typed registers.