fix snippet scopes for constants and types