[examples/rubyish] improved handling of package constants