Variable type testers refactored.

Such testers (e.g., :var.is_string()) have been heavily refactored for both
efficiency and robustness.

"While work yet remains to do
 And doing be done,
 The billy lists to leeward
 In this impracticable dust
 Of ill-begotten glee."