Fixed handling of unary functions.
Removed visibility of SmartNumber