Broken because @ervanalb half-assed context.resolve_type