MAINT: fix ellipsis special case, boolean special case

Also try speed of type checks