Implemented cmp(…).
Implented hasattr(…). Commented out due to compiler bug (?).