Fix revalidation issue by ensuring type function is not returned in
getType().