Print method for displaying instances on the screen

The public print() method of an instance is called, if present,
from print.R6, the generic R6 print method. This way classes can
define how they want their instances  printed.