adds safe object type for stack traces (closes #19)