can interactively defined classes

as proposed in #2754

*Only* interactively defined classes are canned.

closes #2754