Drop attribute notation and support name() function, close #965