check if obj is a symbol.