Add support for stripping types, deprecate custom visitors

cc @lordhoto