Add is_type command, is_instance_of command

targets #492