Sanitized exec and eval in Getter and CollectionAutoeditor.

All uses of exec() and eval() should explicitly pass in a predefined local
namespace, as the semantics of locals() have changed between Python 2 and 3.