Improve type validation for root() functions.

Change-Id: I16af906106d4b38966e37534703f959f7d6c956c
40 files changed