symbol_value() was not qualifying the symbol with package name. Fixed by making it call refer() instead.