Add lvalue/rvalue traits

* Add lvalue/rvalue traits
  * `isLvalue`
  * `rvalueOf`/`lvalueOf`

(commits extracted from pull #954)