Make cbook safe to import while removing duplicate is_string_like;

closes #1019, replaces #1662.