added: ensure_hash, ensure_instance_of, ensure_class